
INCLUDE = -I. -I/usr/include/tcl -I./include
CFLAGS = -g -Wall
CC = g++

#katana_shell: main.o command.o VertexEdge.o katanaEngine.o parsers.o hmetis_wrapper.o
#	$(CC) $(INCLUDE) $(CFLAGS) -o katana_shell hmetis_wrapper.o VertexEdge.o katanaEngine.o command.o parsers.o main.o -L/usr/lib -L/usr/local/lib/hmetis1.5 -ltcl -L../../lib -lpthread -ldl -lblifparser -lhmetis
kshell: main.o tcl_wrapper.o 3dcg_cmds.o baseDB.o placerEngine0.o base_cmds.o
#	$(CC) $(INCLUDE) $(CFLAGS) -o kshell main.o tcl_wrapper.o 3dcg_cmds.o -L./lib/ -L/usr/lib -L/usr/local/lib/hmetis1.5 -ltcl -L../../lib -lpthread -ldl -lblifparser -l3ddrawing -lhmetis
	$(CC) $(INCLUDE) $(CFLAGS) -o kshell main.o tcl_wrapper.o 3dcg_cmds.o baseDB.o placerEngine0.o base_cmds.o -ldl -L/usr/lib/ -ltcl8.4 -L./lib -lglut -lGLU -L/opt/Qt5.2.1/5.2.1/gcc/lib -lQt5OpenGL -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread -Wl,-rpath,/opt/Qt5.2.1/5.2.1/gcc -Wl,-rpath,/opt/Qt5.2.1/5.2.1/gcc/lib

#VertexEdge.o: VertexEdge.cpp VertexEdge.h
#	$(CC) $(INCLUDE) $(CFLAGS) -o VertexEdge.o -c VertexEdge.cpp
#
#katanaEngine.o: katanaEngine.cpp katanaEngine.h
#	$(CC) $(INCLUDE) $(CFLAGS) -o katanaEngine.o -c katanaEngine.cpp
#
#command.o: command.cpp command.h 
#	$(CC) $(INCLUDE) $(CFLAGS) -o command.o -c command.cpp
#
#parsers.o: parsers.cpp
#	$(CC) $(INCLUDE) $(CFLAGS) -o parsers.o -c parsers.cpp
#
#hmetis_wrapper.o: hmetis_wrapper.cpp
#	$(CC) $(INCLUDE) $(CFLAGS) -o hmetis_wrapper.o -c hmetis_wrapper.cpp
#

3dcg_cmds.o: 3dcg_cmds.cpp
	$(CC) $(INCLUDE) $(CFLAGS) -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -DUSEWAFER -I/opt/Qt5.2.1/5.2.1/gcc/mkspecs/linux-g++ -I/opt/Qt5.2.1/5.2.1/gcc/include -I/opt/Qt5.2.1/5.2.1/gcc/include/QtOpenGL -I/opt/Qt5.2.1/5.2.1/gcc/include/QtWidgets -I/opt/Qt5.2.1/5.2.1/gcc/include/QtGui -I/opt/Qt5.2.1/5.2.1/gcc/include/QtCore -lpthread -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -o 3dcg_cmds.o -c 3dcg_cmds.cpp

tcl_wrapper.o: tcl_wrapper.cpp
	$(CC) $(INCLUDE) $(CFLAGS) -o tcl_wrapper.o -c tcl_wrapper.cpp

baseDB.o: baseDB.cpp
	$(CC) $(INCLUDE) $(CFLAGS) -o baseDB.o -c baseDB.cpp

placerEngine0.o: placerEngine0.cpp
	$(CC) $(INCLUDE) $(CFLAGS) -o placerEngine0.o -c placerEngine0.cpp

base_cmds.o: base_cmds.cpp
	$(CC) $(INCLUDE) $(CFLAGS) -o base_cmds.o -c base_cmds.cpp

main.o: main.cpp
	$(CC) $(INCLUDE) $(CFLAGS) -o main.o -c main.cpp

install:
	cp -f kshell ../../bin/
clean:
	rm -f *.o kshell
